Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change uint to unsigned int #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

brc7
Copy link

@brc7 brc7 commented Jul 21, 2020

Problem: Code does not compile under MacOS with g++9, and probably other platforms / configurations too, with error:
include/bitArray.h:13:21: error: 'uint' has not been declared 13 | void SetBit(uint k); (and many other similar errors)

Reason: "uint" is a non-standard datatype that isn't defined by many compilers / systems. It usually means "unsigned int" (which is a standard datatype).

Fix: Replace "uint" with "unsigned int"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant